package com.swu.pad.reflection.entity;

import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Type;
import org.springframework.format.annotation.DateTimeFormat;

//修改后的句子，新插入到该表
@Entity
@Table(name = "modifiedSentence")
public class ModifiedSentence {

	@Id
	@GeneratedValue(generator = "uuid")
	@GenericGenerator(name = "uuid", strategy = "uuid")
	@Column(name = "id")
	private String id;//id
	@Column(name = "initialSentenceId")
	private String initialSentenceId;//id
	//句子修改前类别
    @Column(name = "sentenceClassBefore")
	private String sentenceClassBefore;
    //句子修改后类别
    @Column(name = "sentenceClassAfter")
	private String sentenceClassAfter;
	//文章的版本号  存储最新的版本号  根据版本号 就可以得知 有没有修改 过，如果修改过就  重新保存 一篇文章的所有句子
	@Column(name = "versionNum")
	private String versionNum;
	//修改者id
	@Column(name = "userId")
	private String userId;
	//活动id
	@Column(name = "activityId")
	private String activityId;
	//修改时间
	@Column(name = "modifyTime")
	private String modifyTime;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getInitialSentenceId() {
		return initialSentenceId;
	}
	public void setInitialSentenceId(String initialSentenceId) {
		this.initialSentenceId = initialSentenceId;
	}
	public String getSentenceClassBefore() {
		return sentenceClassBefore;
	}
	public void setSentenceClassBefore(String sentenceClassBefore) {
		this.sentenceClassBefore = sentenceClassBefore;
	}
	public String getSentenceClassAfter() {
		return sentenceClassAfter;
	}
	public void setSentenceClassAfter(String sentenceClassAfter) {
		this.sentenceClassAfter = sentenceClassAfter;
	}
	public String getVersionNum() {
		return versionNum;
	}
	public void setVersionNum(String versionNum) {
		this.versionNum = versionNum;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getActivityId() {
		return activityId;
	}
	public void setActivityId(String activityId) {
		this.activityId = activityId;
	}
	public String getModifyTime() {
		return modifyTime;
	}
	public void setModifyTime(String modifyTime) {
		this.modifyTime = modifyTime;
	}
	@Override
	public String toString() {
		return "ModifiedSentence [id=" + id + ", initialSentenceId=" + initialSentenceId + ", sentenceClassBefore="
				+ sentenceClassBefore + ", sentenceClassAfter=" + sentenceClassAfter + ", versionNum=" + versionNum
				+ ", userId=" + userId + ", activityId=" + activityId + ", modifyTime=" + modifyTime + "]";
	}
	
	
	
	
	
	
	
	

}
